
package com.kingdee.eas.custom.rcbudget.client;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.ctrl.kdf.table.KDTable;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.fdc.basedata.client.ICPBaseInfoDocument;
import com.kingdee.eas.framework.client.CoreBillEditUI;

public class RCBaseInfoDocumentViewUI extends CoreBillEditUI
{
	public RCBaseInfoDocumentViewUI() throws Exception {
		super();
	}

	ICPBaseInfoDocument cpDoc = null;
	final String operation = "Operation";
	final String management = "Management";

  private void initCPDoc()
    throws EASBizException, BOSException
  {
    Object uiParam = getUIContext().get("UIClassParam");
    if ("Operation".equals(uiParam))
      this.cpDoc = new RCBaseInfoDocOperation();
//    else if ("Management".equals(uiParam)) {
//      this.cpDoc = new CPBaseInfoDocManagement();
//    }
    this.cpDoc.showAttachmentDialog();
  }

  protected IObjectValue createNewDetailData(KDTable arg0)
  {
    return null;
  }

  protected KDTable getDetailTable()
  {
    return null;
  }

  public void onLoad() throws Exception {
    super.onLoad();
    initCPDoc();
  }

  public void onShow() throws Exception {
    super.onShow();
    getUIWindow().close();
  }
}